package com.byfan.barter.jpa;

import com.byfan.barter.entity.Favorites;

import java.util.List;

/**
 * @Author: FBY
 * @Description 商品收藏的持久层
 * @Version 1.0
 * @Date: 2021/5/14 15:28
 */
public interface FavoritesJpa extends BaseRepository<Favorites,Integer>{
    List<Favorites> findByOpenIdOrderByCreatTimeDesc(String openId);

    void deleteByOpenIdAndCommodityId(String openId,Integer commodityId);
}
